storj/storage/redis/queue_test.go

27 lines
438 B
Go

// Copyright (C) 2018 Storj Labs, Inc.
// See LICENSE for copying information.
package redis
import (
"testing"
"storj.io/storj/storage/redis/redisserver"
"storj.io/storj/storage/testsuite"
)
func TestQueue(t *testing.T) {
addr, cleanup, err := redisserver.Start()
if err != nil {
t.Fatal(err)
}
defer cleanup()
client, err := NewQueue(addr, "", 1)
if err != nil {
t.Fatal(err)
}
testsuite.RunQueueTests(t, client)
}