From 20955742a7ab46a9082bc064bdf7937b223cad8e Mon Sep 17 00:00:00 2001 From: freddygv Date: Mon, 13 Jun 2022 12:20:22 -0600 Subject: [PATCH] Fixup api test --- api/peering_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/peering_test.go b/api/peering_test.go index e33f221124..ea93e63454 100644 --- a/api/peering_test.go +++ b/api/peering_test.go @@ -212,10 +212,11 @@ func TestAPI_Peering_GenerateToken_Read_Establish_Delete(t *testing.T) { require.NoError(t, err) require.NotNil(t, wm) - // Read to see if the token is "gone" + // Read to see if the token is marked for deletion resp, qm, err := c.Peerings().Read(ctx, "peer1", nil) require.NoError(t, err) require.NotNil(t, qm) - require.Nil(t, resp) + require.NotNil(t, resp) + require.False(t, resp.DeletedAt.IsZero()) }) }