From 1a233d2c9834883735996e231d22f906f4b210e8 Mon Sep 17 00:00:00 2001 From: gabe Date: Fri, 12 Apr 2024 12:57:47 -0400 Subject: [PATCH] remove test --- impl/internal/did/client_test.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/impl/internal/did/client_test.go b/impl/internal/did/client_test.go index 3ad74552..42ceecd3 100644 --- a/impl/internal/did/client_test.go +++ b/impl/internal/did/client_test.go @@ -48,27 +48,6 @@ func TestClientInvalidGateway(t *testing.T) { assert.Nil(t, g) } -func TestClientGet(t *testing.T) { - client, err := NewGatewayClient("https://diddht.tbddev.org") - require.NoError(t, err) - require.NotNil(t, client) - - // get the same DID 20 different times and log how long it takes each time - // aggregate the average time to get the DID after the loop - var total time.Duration - for i := 0; i < 20; i++ { - start := time.Now() - _, _, _, err := client.GetDIDDocument("did:dht:i9xkp8ddcbcg8jwq54ox699wuzxyifsqx4jru45zodqu453ksz6y") - require.NoError(t, err) - since := time.Since(start) - t.Logf("time to get DID: %s in round %d", since, i) - total += since - - } - average := total / 20 - t.Logf("average time to get DID: %s", average) -} - func TestInvalidDIDDocument(t *testing.T) { client, err := NewGatewayClient("https://diddht.tbddev.test") require.NoError(t, err)