Identity load and save params, invitation check
This commit is contained in:
@ -16,7 +16,7 @@ func TestEndToEnd(t *testing.T) {
|
||||
// Create my own identity
|
||||
//
|
||||
fmt.Println("Trying to load identity from file.")
|
||||
Me, err := client.LoadIdentity("id.enc")
|
||||
Me, err := client.LoadIdentity("id.enc", "Test")
|
||||
if err != nil {
|
||||
fmt.Println("Failed : creating New identity...")
|
||||
///////////////////////////
|
||||
@ -65,10 +65,10 @@ func TestEndToEnd(t *testing.T) {
|
||||
// Finalize the contact with the invitation response //
|
||||
///////////////////////////////////////////////////////
|
||||
Me.FinalizeInvitation(&ReceivedContact)
|
||||
/*err = Me.Save("id.enc")
|
||||
err = Me.Save()
|
||||
if err != nil {
|
||||
fmt.Println(err.Error())
|
||||
}*/
|
||||
}
|
||||
|
||||
a, _ = json.Marshal(Me)
|
||||
ioutil.WriteFile("id.json", a, 0644)
|
||||
|
Reference in New Issue
Block a user