mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test: fix use of t.Logf where t.Log would suffice (#16328)
This commit is contained in:
+2
-2
@@ -1962,7 +1962,7 @@ func TestAgent_UpdatedDERP(t *testing.T) {
|
||||
// Push a new DERP map to the agent.
|
||||
err := client.PushDERPMapUpdate(newDerpMap)
|
||||
require.NoError(t, err)
|
||||
t.Logf("pushed DERPMap update to agent")
|
||||
t.Log("pushed DERPMap update to agent")
|
||||
|
||||
require.Eventually(t, func() bool {
|
||||
conn := uut.TailnetConn()
|
||||
@@ -1974,7 +1974,7 @@ func TestAgent_UpdatedDERP(t *testing.T) {
|
||||
t.Logf("agent Conn DERPMap with regionIDs %v, PreferredDERP %d", regionIDs, preferredDERP)
|
||||
return len(regionIDs) == 1 && regionIDs[0] == 2 && preferredDERP == 2
|
||||
}, testutil.WaitLong, testutil.IntervalFast)
|
||||
t.Logf("agent got the new DERPMap")
|
||||
t.Log("agent got the new DERPMap")
|
||||
|
||||
// Connect from a second client and make sure it uses the new DERP map.
|
||||
conn2 := newClientConn(newDerpMap, "client2")
|
||||
|
||||
Reference in New Issue
Block a user