mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-02-11 23:55:07 -05:00
dataplex
This commit is contained in:
@@ -517,8 +517,11 @@ func runDataplexSearchEntriesToolInvokeTest(t *testing.T, tableName string, data
|
||||
t.Fatalf("expected entry to have key '%s', but it was not found in %v", tc.wantContentKey, entry)
|
||||
}
|
||||
} else {
|
||||
if !strings.Contains(resultStr, `"error":`) {
|
||||
t.Fatalf("expected an error message in the result, but got: %s", resultStr)
|
||||
isResultEmpty := resultStr == "" || resultStr == "[]" || resultStr == "null"
|
||||
hasError := strings.Contains(resultStr, `"error":`)
|
||||
|
||||
if !isResultEmpty && !hasError {
|
||||
t.Fatalf("expected an empty result or error message, but got: %s", resultStr)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user