mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 05:23:04 +00:00
16 lines
262 B
Go
16 lines
262 B
Go
package flags
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestHTTPFlagsSetToken(t *testing.T) {
|
|
var f HTTPFlags
|
|
require := require.New(t)
|
|
require.Empty(f.Token())
|
|
require.NoError(f.SetToken("foo"))
|
|
require.Equal("foo", f.Token())
|
|
}
|