storagenode/gracefulexit: move database test

Database tests belong to the interface, not the implementation.

Change-Id: I5d76fdc7df0b0f32391ebad1b595ef26b062a9cb
This commit is contained in:
Egon Elbre 2020-01-14 13:08:38 +02:00
parent ca8ceff5e2
commit 3cd584c007

View File

@ -1,7 +1,7 @@
// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package storagenodedbtest_test
package gracefulexit_test
import (
"testing"
@ -16,8 +16,8 @@ import (
"storj.io/storj/storagenode/storagenodedb/storagenodedbtest"
)
// TestGracefulExitDB tests the graceful exit database calls
func TestGracefulExitDB(t *testing.T) { //satelliteID storj.NodeID, finishedAt time.Time, exitStatus satelliteStatus, completionReceipt []byte) (err error) {
// TestDB tests the graceful exit database calls
func TestDB(t *testing.T) {
storagenodedbtest.Run(t, func(t *testing.T, db storagenode.DB) {
ctx := testcontext.New(t)
defer ctx.Cleanup()