From 036edd2cf7620ebd828d7b353e689fa41d17a97d Mon Sep 17 00:00:00 2001 From: Islam Aleiv Date: Mon, 8 Jul 2024 13:35:26 +0200 Subject: [PATCH] Format imports --- internal/encryption/encryptor.go | 3 ++- internal/encryption/encryptor_test.go | 3 ++- tests/integration/encryption/commit_test.go | 3 ++- tests/integration/encryption/field_commit_test.go | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/internal/encryption/encryptor.go b/internal/encryption/encryptor.go index 98de2fbf12..632d5251f3 100644 --- a/internal/encryption/encryptor.go +++ b/internal/encryption/encryptor.go @@ -18,9 +18,10 @@ import ( ds "github.com/ipfs/go-datastore" + "github.com/sourcenetwork/immutable" + "github.com/sourcenetwork/defradb/datastore" "github.com/sourcenetwork/defradb/internal/core" - "github.com/sourcenetwork/immutable" ) var generateEncryptionKeyFunc = generateEncryptionKey diff --git a/internal/encryption/encryptor_test.go b/internal/encryption/encryptor_test.go index 6886464cd6..08b8965ff1 100644 --- a/internal/encryption/encryptor_test.go +++ b/internal/encryption/encryptor_test.go @@ -19,9 +19,10 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" + "github.com/sourcenetwork/immutable" + "github.com/sourcenetwork/defradb/datastore/mocks" "github.com/sourcenetwork/defradb/internal/core" - "github.com/sourcenetwork/immutable" ) var testErr = errors.New("test error") diff --git a/tests/integration/encryption/commit_test.go b/tests/integration/encryption/commit_test.go index b9d81234f8..3c3d832594 100644 --- a/tests/integration/encryption/commit_test.go +++ b/tests/integration/encryption/commit_test.go @@ -13,9 +13,10 @@ package encryption import ( "testing" - testUtils "github.com/sourcenetwork/defradb/tests/integration" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + + testUtils "github.com/sourcenetwork/defradb/tests/integration" ) func TestDocEncryption_WithEncryptionOnLWWCRDT_ShouldStoreCommitsDeltaEncrypted(t *testing.T) { diff --git a/tests/integration/encryption/field_commit_test.go b/tests/integration/encryption/field_commit_test.go index 44d4663c28..3058c1c07c 100644 --- a/tests/integration/encryption/field_commit_test.go +++ b/tests/integration/encryption/field_commit_test.go @@ -13,8 +13,9 @@ package encryption import ( "testing" - testUtils "github.com/sourcenetwork/defradb/tests/integration" "github.com/stretchr/testify/assert" + + testUtils "github.com/sourcenetwork/defradb/tests/integration" ) func TestDocEncryptionField_WithEncryptionOnField_ShouldStoreOnlyFieldsDeltaEncrypted(t *testing.T) {