From f1551799305abc4862f2c629242ddc182cee0bb0 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Mon, 12 Sep 2022 16:48:16 +0000 Subject: [PATCH] Add `t.Helper()` to `newTestGenesisWithTrieAndHeader` --- dot/core/helpers_test.go | 2 ++ dot/digest/helpers_test.go | 2 ++ dot/helpers_test.go | 2 ++ dot/rpc/helpers_test.go | 2 ++ dot/rpc/modules/helpers_test.go | 2 ++ dot/state/helpers_test.go | 2 ++ dot/sync/syncer_integration_test.go | 2 ++ lib/babe/helpers_test.go | 2 ++ lib/grandpa/helpers_test.go | 2 ++ 9 files changed, 18 insertions(+) diff --git a/dot/core/helpers_test.go b/dot/core/helpers_test.go index 517677ef3ae..57fa1173a40 100644 --- a/dot/core/helpers_test.go +++ b/dot/core/helpers_test.go @@ -139,6 +139,8 @@ func NewTestService(t *testing.T, cfg *Config) *Service { func newTestGenesisWithTrieAndHeader(t *testing.T) ( gen genesis.Genesis, genesisTrie trie.Trie, genesisHeader types.Header) { + t.Helper() + genesisPath := utils.GetGssmrV3SubstrateGenesisRawPathTest(t) genPtr, err := genesis.NewGenesisFromJSONRaw(genesisPath) require.NoError(t, err) diff --git a/dot/digest/helpers_test.go b/dot/digest/helpers_test.go index 3387aa87939..9b8d8f8c047 100644 --- a/dot/digest/helpers_test.go +++ b/dot/digest/helpers_test.go @@ -17,6 +17,8 @@ import ( func newTestGenesisWithTrieAndHeader(t *testing.T) ( gen genesis.Genesis, genesisTrie trie.Trie, genesisHeader types.Header) { + t.Helper() + genesisPath := utils.GetGssmrV3SubstrateGenesisRawPathTest(t) genesisPtr, err := genesis.NewGenesisFromJSONRaw(genesisPath) require.NoError(t, err) diff --git a/dot/helpers_test.go b/dot/helpers_test.go index 78bf1b0aba5..4efff55b72b 100644 --- a/dot/helpers_test.go +++ b/dot/helpers_test.go @@ -29,6 +29,8 @@ func writeGenesisToTestJSON(t *testing.T, genesis genesis.Genesis) (filename str func newTestGenesisWithTrieAndHeader(t *testing.T) ( gen genesis.Genesis, genesisTrie trie.Trie, genesisHeader types.Header) { + t.Helper() + genesisPath := utils.GetGssmrV3SubstrateGenesisRawPathTest(t) genPtr, err := genesis.NewGenesisFromJSONRaw(genesisPath) require.NoError(t, err) diff --git a/dot/rpc/helpers_test.go b/dot/rpc/helpers_test.go index aab2428a441..082c59b7b60 100644 --- a/dot/rpc/helpers_test.go +++ b/dot/rpc/helpers_test.go @@ -17,6 +17,8 @@ import ( func newTestGenesisWithTrieAndHeader(t *testing.T) ( gen genesis.Genesis, genesisTrie trie.Trie, genesisHeader types.Header) { + t.Helper() + genesisPath := utils.GetGssmrV3SubstrateGenesisRawPathTest(t) genesisPtr, err := genesis.NewGenesisFromJSONRaw(genesisPath) require.NoError(t, err) diff --git a/dot/rpc/modules/helpers_test.go b/dot/rpc/modules/helpers_test.go index 23188856ba0..67f0189e52e 100644 --- a/dot/rpc/modules/helpers_test.go +++ b/dot/rpc/modules/helpers_test.go @@ -24,6 +24,8 @@ func makeChange(keyHex, valueHex string) [2]*string { func newTestGenesisWithTrieAndHeader(t *testing.T) ( gen genesis.Genesis, genesisTrie trie.Trie, genesisHeader types.Header) { + t.Helper() + genesisPath := utils.GetGssmrV3SubstrateGenesisRawPathTest(t) genesisPtr, err := genesis.NewGenesisFromJSONRaw(genesisPath) require.NoError(t, err) diff --git a/dot/state/helpers_test.go b/dot/state/helpers_test.go index f0d05319ef6..ce299abc43c 100644 --- a/dot/state/helpers_test.go +++ b/dot/state/helpers_test.go @@ -91,6 +91,8 @@ func generateRandBytes(tb testing.TB, size int, func newTestGenesisWithTrieAndHeader(t *testing.T) ( gen genesis.Genesis, genesisTrie trie.Trie, genesisHeader types.Header) { + t.Helper() + genesisPath := utils.GetGssmrV3SubstrateGenesisRawPathTest(t) genesisPtr, err := genesis.NewGenesisFromJSONRaw(genesisPath) require.NoError(t, err) diff --git a/dot/sync/syncer_integration_test.go b/dot/sync/syncer_integration_test.go index 5e8dfe75a9a..881e91763e8 100644 --- a/dot/sync/syncer_integration_test.go +++ b/dot/sync/syncer_integration_test.go @@ -124,6 +124,8 @@ func newTestSyncer(t *testing.T) *Service { func newTestGenesisWithTrieAndHeader(t *testing.T) ( gen genesis.Genesis, genesisTrie trie.Trie, genesisHeader types.Header) { + t.Helper() + genesisPath := utils.GetGssmrV3SubstrateGenesisRawPathTest(t) genesisPtr, err := genesis.NewGenesisFromJSONRaw(genesisPath) require.NoError(t, err) diff --git a/lib/babe/helpers_test.go b/lib/babe/helpers_test.go index 13618e40af8..622a9eb0c46 100644 --- a/lib/babe/helpers_test.go +++ b/lib/babe/helpers_test.go @@ -37,6 +37,8 @@ func newDevGenesisWithTrieAndHeader(t *testing.T) ( func newTestGenesisWithTrieAndHeader(t *testing.T) ( gen genesis.Genesis, genesisTrie trie.Trie, genesisHeader types.Header) { + t.Helper() + genesisPath := utils.GetGssmrV3SubstrateGenesisRawPathTest(t) genesisPtr, err := genesis.NewGenesisFromJSONRaw(genesisPath) require.NoError(t, err) diff --git a/lib/grandpa/helpers_test.go b/lib/grandpa/helpers_test.go index 420ae9fe138..2b8db29723b 100644 --- a/lib/grandpa/helpers_test.go +++ b/lib/grandpa/helpers_test.go @@ -17,6 +17,8 @@ import ( func newTestGenesisWithTrieAndHeader(t *testing.T) ( gen genesis.Genesis, genesisTrie trie.Trie, genesisHeader types.Header) { + t.Helper() + genesisPath := utils.GetGssmrV3SubstrateGenesisRawPathTest(t) genesisPtr, err := genesis.NewGenesisFromJSONRaw(genesisPath) require.NoError(t, err)