diff --git a/bucket_test.go b/bucket_test.go index dfc2dd6b9..c35bbac91 100644 --- a/bucket_test.go +++ b/bucket_test.go @@ -5,7 +5,6 @@ import ( "encoding/binary" "errors" "fmt" - "go.etcd.io/bbolt/internal/btesting" "log" "math/rand" "os" @@ -18,6 +17,7 @@ import ( "github.com/stretchr/testify/require" bolt "go.etcd.io/bbolt" + "go.etcd.io/bbolt/internal/btesting" ) // Ensure that a bucket that gets a non-existent key returns nil. diff --git a/cursor_test.go b/cursor_test.go index d58a97152..8e112c14e 100644 --- a/cursor_test.go +++ b/cursor_test.go @@ -4,7 +4,6 @@ import ( "bytes" "encoding/binary" "fmt" - "go.etcd.io/bbolt/internal/btesting" "log" "os" "reflect" @@ -13,6 +12,7 @@ import ( "testing/quick" bolt "go.etcd.io/bbolt" + "go.etcd.io/bbolt/internal/btesting" ) // Ensure that a cursor can return a reference to the bucket that created it. diff --git a/db_test.go b/db_test.go index 33a1b5ce4..08a61babd 100644 --- a/db_test.go +++ b/db_test.go @@ -5,7 +5,6 @@ import ( "encoding/binary" "errors" "fmt" - "go.etcd.io/bbolt/internal/btesting" "hash/fnv" "log" "math/rand" @@ -17,6 +16,7 @@ import ( "unsafe" bolt "go.etcd.io/bbolt" + "go.etcd.io/bbolt/internal/btesting" ) // pageSize is the size of one page in the data file. diff --git a/internal/btesting/btesting.go b/internal/btesting/btesting.go index 9c65352f1..110cc3486 100644 --- a/internal/btesting/btesting.go +++ b/internal/btesting/btesting.go @@ -3,13 +3,15 @@ package btesting import ( "flag" "fmt" - "github.com/stretchr/testify/require" - bolt "go.etcd.io/bbolt" "os" "path/filepath" "regexp" "testing" "time" + + "github.com/stretchr/testify/require" + + bolt "go.etcd.io/bbolt" ) var statsFlag = flag.Bool("stats", false, "show performance stats") diff --git a/simulation_test.go b/simulation_test.go index 3166aa398..037b7183c 100644 --- a/simulation_test.go +++ b/simulation_test.go @@ -3,13 +3,13 @@ package bbolt_test import ( "bytes" "fmt" - "go.etcd.io/bbolt/internal/btesting" "math/rand" "sync" "sync/atomic" "testing" bolt "go.etcd.io/bbolt" + "go.etcd.io/bbolt/internal/btesting" ) func TestSimulate_1op_1p(t *testing.T) { testSimulate(t, nil, 1, 1, 1) } diff --git a/tx_test.go b/tx_test.go index 458404bab..4a4c1f059 100644 --- a/tx_test.go +++ b/tx_test.go @@ -4,12 +4,12 @@ import ( "bytes" "errors" "fmt" - "go.etcd.io/bbolt/internal/btesting" "log" "os" "testing" bolt "go.etcd.io/bbolt" + "go.etcd.io/bbolt/internal/btesting" ) // TestTx_Check_ReadOnly tests consistency checking on a ReadOnly database. diff --git a/unix_test.go b/unix_test.go index 927aa7a66..78091fa97 100644 --- a/unix_test.go +++ b/unix_test.go @@ -5,11 +5,11 @@ package bbolt_test import ( "fmt" - "go.etcd.io/bbolt/internal/btesting" + "golang.org/x/sys/unix" "testing" bolt "go.etcd.io/bbolt" - "golang.org/x/sys/unix" + "go.etcd.io/bbolt/internal/btesting" ) func TestMlock_DbOpen(t *testing.T) {