Skip to content

Commit 2719394

Browse files
committed
Improve test
1 parent 19bbb07 commit 2719394

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/issues/stateManager.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ describe('StateManager branch behavior with useBranchForIssues setting', functio
168168

169169
// Await the collection promise so setIssues completes
170170
const collection = stateManager.getIssueCollection(mockUri);
171-
await collection.get('Test');
171+
const testQueryPromise = collection.get('Test');
172+
assert.ok(testQueryPromise, 'Expected issue collection to contain the \'Test\' query label');
173+
await testQueryPromise;
172174

173175
// If we get here without assertion failures in getIssues, the test passed
174176
} finally {

0 commit comments

Comments
 (0)