From 2acf7f74e4895b857168c48088bd95df4bd53f46 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 4 Sep 2025 14:24:22 -0300 Subject: [PATCH] test: make test less intermittent --- providertests/provider_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/providertests/provider_test.go b/providertests/provider_test.go index fa30a55e78a6b5895de7fe86bf556717fd82031c..8ffcfb2471986b3ca69f3747c48159922a315623 100644 --- a/providertests/provider_test.go +++ b/providertests/provider_test.go @@ -31,10 +31,11 @@ func TestSimple(t *testing.T) { t.Fatalf("failed to generate: %v", err) } - want := "Olá" + option1 := "Oi" + option2 := "Olá" got := result.Response.Content.Text() - if !strings.Contains(got, want) { - t.Fatalf("unexpected response: got %q, want %q", got, want) + if !strings.Contains(got, option1) && !strings.Contains(got, option2) { + t.Fatalf("unexpected response: got %q, want %q or %q", got, option1, option2) } }) }