From 6b9be21fdddcbc94b548066bbec54e2d8c61a125 Mon Sep 17 00:00:00 2001 From: Shahzad Lone Date: Tue, 24 Sep 2024 22:19:07 -0400 Subject: [PATCH] PR(LINT): Make lint --- tests/integration/acp/p2p/create_test.go | 3 ++- tests/integration/utils.go | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/integration/acp/p2p/create_test.go b/tests/integration/acp/p2p/create_test.go index d8f37034d7..8775a553d7 100644 --- a/tests/integration/acp/p2p/create_test.go +++ b/tests/integration/acp/p2p/create_test.go @@ -14,8 +14,9 @@ import ( "fmt" "testing" - testUtils "github.com/sourcenetwork/defradb/tests/integration" "github.com/sourcenetwork/immutable" + + testUtils "github.com/sourcenetwork/defradb/tests/integration" ) func TestACP_P2PCreatePrivateDocumentsOnDifferentNodes_SourceHubACP(t *testing.T) { diff --git a/tests/integration/utils.go b/tests/integration/utils.go index 004588b2d0..e6ab296140 100644 --- a/tests/integration/utils.go +++ b/tests/integration/utils.go @@ -976,7 +976,6 @@ func getIndexes( expectedErrorRaised = expectedErrorRaised || AssertError(s.t, s.testCase.Description, err, action.ExpectedError) } - } assertExpectedErrorRaised(s.t, s.testCase.Description, action.ExpectedError, expectedErrorRaised) @@ -1534,7 +1533,6 @@ func updateDoc( ) expectedErrorRaised = AssertError(s.t, s.testCase.Description, err, action.ExpectedError) } - } assertExpectedErrorRaised(s.t, s.testCase.Description, action.ExpectedError, expectedErrorRaised) @@ -1862,7 +1860,6 @@ func backupImport( func() error { return node.BasicImport(s.ctx, action.Filepath) }, ) expectedErrorRaised = AssertError(s.t, s.testCase.Description, err, action.ExpectedError) - } else { for _, node := range s.nodes { err := withRetryOnNode( @@ -1871,7 +1868,6 @@ func backupImport( ) expectedErrorRaised = AssertError(s.t, s.testCase.Description, err, action.ExpectedError) } - } assertExpectedErrorRaised(s.t, s.testCase.Description, action.ExpectedError, expectedErrorRaised)