storj/pkg/overlay/config_test.go

20 lines
418 B
Go
Raw Normal View History

// Copyright (C) 2018 Storj Labs, Inc.
// See LICENSE for copying information.
package overlay
import (
"context"
"testing"
"github.com/stretchr/testify/assert"
)
func TestRun(t *testing.T) {
ctx := context.Background()
2018-11-16 16:31:14 +00:00
// run with nil, pass pointer to Kademlia in context
err := Config{}.Run(ctx, nil)
2018-11-16 16:31:14 +00:00
assert.Error(t, err)
assert.Equal(t, "overlay error: unable to get master db instance", err.Error())
}