Skip to content

Commit

Permalink
rename storagetest to test
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepeterson committed Sep 16, 2023
1 parent 710ee21 commit 5ea1a0b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions storage/file/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"testing"

"github.com/micromdm/nanodep/storage"
"github.com/micromdm/nanodep/storage/storagetest"
"github.com/micromdm/nanodep/storage/test"
)

func TestFileStorage(t *testing.T) {
storagetest.Run(t, func(t *testing.T) storage.AllStorage {
test.Run(t, func(t *testing.T) storage.AllStorage {
s, err := New(t.TempDir())
if err != nil {
t.Fatal(err)
Expand Down
4 changes: 2 additions & 2 deletions storage/mysql/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

_ "github.com/go-sql-driver/mysql"
"github.com/micromdm/nanodep/storage"
"github.com/micromdm/nanodep/storage/storagetest"
"github.com/micromdm/nanodep/storage/test"
)

func TestMySQLStorage(t *testing.T) {
Expand All @@ -20,7 +20,7 @@ func TestMySQLStorage(t *testing.T) {
t.Skip("NANODEP_MYSQL_STORAGE_TEST not set")
}

storagetest.Run(t, func(t *testing.T) storage.AllStorage {
test.Run(t, func(t *testing.T) storage.AllStorage {
dbName := initTestDB(t)
testDSN := fmt.Sprintf("nanodep:insecure@tcp(localhost:4242)/%s?charset=utf8mb4&loc=UTC", dbName)
s, err := New(WithDSN(testDSN))
Expand Down
4 changes: 2 additions & 2 deletions storage/storagetest/storagetest.go → storage/test/test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package storagetest offers a battery of tests for storage.AllStorage implementations.
package storagetest
// Package test offers a battery of tests for storage.AllStorage implementations.
package test

import (
"bytes"
Expand Down

0 comments on commit 5ea1a0b

Please sign in to comment.