Test improvements

This commit is contained in:
Matt Joiner 2015-12-16 15:16:53 +11:00
parent 44ec4d9bdb
commit 6d8310d2df
1 changed files with 7 additions and 4 deletions

View File

@ -174,10 +174,10 @@ func TestDHTSec(t *testing.T) {
}
func TestServerDefaultNodeIdSecure(t *testing.T) {
s, err := NewServer(nil)
if err != nil {
t.Fatal(err)
}
s, err := NewServer(&ServerConfig{
NoDefaultBootstrap: true,
})
require.NoError(t, err)
defer s.Close()
if !NodeIdSecure(s.ID(), missinggo.AddrIP(s.Addr())) {
t.Fatal("not secure")
@ -201,6 +201,9 @@ func TestServerCustomNodeId(t *testing.T) {
}
func TestAnnounceTimeout(t *testing.T) {
if testing.Short() {
t.Skip()
}
s, err := NewServer(&ServerConfig{
BootstrapNodes: []string{"1.2.3.4:5"},
})