Skip to content

Commit 5ddbd96

Browse files
committed
Fix no auth test
1 parent 7f19447 commit 5ddbd96

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Weaviate.Client.Tests/Integration/TestAuth.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,9 @@ public async Task TestNoAuthProvided()
7676
{
7777
Assert.True(await IsAuthEnabled($"localhost:{OKTA_PORT_CC}"));
7878

79-
var client = Connect.Local(hostname: "localhost", restPort: OKTA_PORT_CC);
80-
81-
await Assert.ThrowsAnyAsync<WeaviateServerException>(async () =>
79+
var client = await Assert.ThrowsAnyAsync<WeaviateServerException>(async () =>
8280
{
83-
await client.Collections.List().ToListAsync(TestContext.Current.CancellationToken);
81+
Connect.Local(hostname: "localhost", restPort: OKTA_PORT_CC);
8482
});
8583
}
8684

0 commit comments

Comments
 (0)