Fix integration test (#762)

* added TestCompletionStream test

moved completion stream testing to seperate function
added NoErrorF
fixes nil pointer reference on stream object

* update integration test models
This commit is contained in:
Adam Smith
2024-06-13 17:23:07 +04:00
committed by GitHub
parent 8618492b98
commit fd41f7a5f4
4 changed files with 62 additions and 42 deletions
+7
View File
@@ -12,6 +12,13 @@ func NoError(t *testing.T, err error, message ...string) {
}
}
func NoErrorF(t *testing.T, err error, message ...string) {
t.Helper()
if err != nil {
t.Fatal(err, message)
}
}
func HasError(t *testing.T, err error, message ...string) {
t.Helper()
if err == nil {