Skip to content

Commit

Permalink
Test get key
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Masley committed Jun 21, 2017
1 parent cf01e15 commit 240ca0d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions state/state_test.go
Expand Up @@ -43,6 +43,23 @@ func TestSecretCode(t *testing.T) {
fmt.Printf("Secret Numbers %x %x %x\n", num1, num2, num3)
}

func TestStateKeys(t *testing.T) {
s := testHelper.CreateEmptyTestState()
sec := primitives.RandomPrivateKey()
s.SimSetNewKeys(sec)
act := s.GetServerPrivateKey()
if act.PublicKeyString() != sec.PublicKeyString() {
t.Error("Public key is not correct")
}

if act.PrivateKeyString() != sec.PrivateKeyString() {
t.Error("Public key is not correct")
}

var _ = s.GetStatus()

}

/*
func TestDirBlockHead(t *testing.T) {
state := testHelper.CreateAndPopulateTestState()
Expand Down

0 comments on commit 240ca0d

Please sign in to comment.