Fix test for error message.

This commit is contained in:
2023-04-07 16:06:57 +01:00
parent 2a628a7da7
commit 664a692c2d
+1 -1
View File
@@ -231,7 +231,7 @@ func TestBaseClient_Query(t *testing.T) {
t.Errorf("BaseClient.Query() error = %v, wantErr %v", err, tt.wantErr)
return
}
if !reflect.DeepEqual(got, tt.want) {
if !tt.wantErr && !reflect.DeepEqual(got, tt.want) {
t.Errorf("BaseClient.Query() = %v, want %v", got, tt.want)
}
}