From db90c98475de2a01070dac3a310f1ef0fdf9b700 Mon Sep 17 00:00:00 2001 From: rene <41963722+renaynay@users.noreply.github.com> Date: Wed, 30 Mar 2022 13:07:20 +0100 Subject: [PATCH] test: delete unit test for core access as it doesnt work in favour of https://github.com/celestiaorg/celestia-node/issues/570 --- service/state/core_access_test.go | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 service/state/core_access_test.go diff --git a/service/state/core_access_test.go b/service/state/core_access_test.go deleted file mode 100644 index e1c9cba69b..0000000000 --- a/service/state/core_access_test.go +++ /dev/null @@ -1,31 +0,0 @@ -package state - -/* -The test below has been commented out for now as the mock celestia-app has issues -initializing the chain, and therefore cannot be used properly in the test yet. -*/ - -/* -func TestCoreAccess(t *testing.T) { - // create signer + acct - dir := t.TempDir() - ring, err := keyring.New("celestia", "test", dir, os.Stdin) - require.NoError(t, err) - acc, err := ring.NewAccount("something", testutil.TestMnemonic, "", "", hd.Secp256k1) - require.NoError(t, err) - signer := apptypes.NewKeyringSigner(ring, acc.GetName(), "test") - - // create app and start core node - celapp := apputil.SetupTestApp(t, acc.GetAddress()) - nd := core.StartMockNode(celapp) - defer nd.Stop() //nolint:errcheck - _, ip := core.GetRemoteEndpoint(nd) - grpcEndpoint := fmt.Sprintf("%s:9090", ip) - - // create CoreAccess with the grpc endpoint to mock core node - ca := NewCoreAccessor(signer, grpcEndpoint) - bal, err := ca.Balance(context.Background()) - require.NoError(t, err) - t.Log("BAL: ", bal) -} -*/