mirror of
https://github.com/lukaszraczylo/go-simple-graphql.git
synced 2026-10-14 00:58:32 +00:00
Fix test for error message.
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user