From 51dc26db4ed62e26f6776f4bd3351be48e476cb8 Mon Sep 17 00:00:00 2001 From: Evan Culver Date: Fri, 13 May 2022 10:13:02 -0700 Subject: [PATCH] peering: fix panic in test (#13069) --- api/peering_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/peering_test.go b/api/peering_test.go index 41b7353358..1437dd8f0d 100644 --- a/api/peering_test.go +++ b/api/peering_test.go @@ -153,12 +153,13 @@ func TestAPI_Peering_GenerateToken_Read_Initiate_Delete(t *testing.T) { var token1 string // Generate a token happy path resp, wm, err := peerings.GenerateToken(ctx, p1, options) - token1 = resp.PeeringToken require.NoError(t, err) require.NotEmpty(t, wm) require.NotEmpty(t, resp) + token1 = resp.PeeringToken + // Read token generated on server resp2, qm, err2 := peerings.Read(ctx, PeeringReadRequest{Name: "peer1"}, nil)