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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user