Skip to content

Commit 6546be9

Browse files
committed
Fix built-in race
1 parent 21ecb38 commit 6546be9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/server_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ func TestServer(t *testing.T) {
8383
errC <- root.ExecuteContext(ctx)
8484
}()
8585
require.Eventually(t, func() bool {
86-
_, err := cfg.URL().Read()
87-
return err == nil
86+
accessURLRaw, err := cfg.URL().Read()
87+
return accessURLRaw != "" && err == nil
8888
}, time.Minute, 25*time.Millisecond)
8989
cancelFunc()
9090
require.ErrorIs(t, <-errC, context.Canceled)

0 commit comments

Comments
 (0)