Skip to content

Commit

Permalink
Add extra test for AwaitSchemaAgreement
Browse files Browse the repository at this point in the history
  • Loading branch information
sylwiaszunejko committed Sep 5, 2024
1 parent d31335c commit 8e45a42
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,13 @@ func TestSessionAwaitSchemaAgreement(t *testing.T) {
t.Fatalf("expected session.AwaitSchemaAgreement to not return an error but got '%v'", err)
}
}

func TestSessionAwaitSchemaAgreementSessionClosed(t *testing.T) {
session := createSession(t)
session.Close()

if err := session.AwaitSchemaAgreement(context.Background()); err != ErrConnectionClosed {
t.Fatalf("expected session.AwaitSchemaAgreement to return ErrConnectionClosed but got '%v'", err)
}

}

0 comments on commit 8e45a42

Please sign in to comment.