storj/pkg/overlay/config_test.go
2018-12-20 15:57:54 +02:00

20 lines
418 B
Go

// 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()
// run with nil, pass pointer to Kademlia in context
err := Config{}.Run(ctx, nil)
assert.Error(t, err)
assert.Equal(t, "overlay error: unable to get master db instance", err.Error())
}