Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ginja committed Aug 7, 2018
1 parent 804dc00 commit 136ab1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions path_ejson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ func TestEJSON_Data_Delete(t *testing.T) {
}

respReadEnc, err := b.HandleRequest(context.Background(), reqReadEnc)
if err != nil || (respReadEnc != nil && respReadEnc.IsError()) {
if err != nil {
t.Fatalf("err:%s resp:%#v\n", err, respReadEnc)
}

if respReadEnc != nil {
if respReadEnc != nil && !respReadEnc.IsError() {
t.Fatalf("Read encrypted data that was supposed to be deleted: \n%#v", respReadEnc)
}

Expand All @@ -154,11 +154,11 @@ func TestEJSON_Data_Delete(t *testing.T) {
}

respReadDec, err := b.HandleRequest(context.Background(), reqReadDec)
if err != nil || (respReadDec != nil && respReadDec.IsError()) {
if err != nil {
t.Fatalf("err:%s resp:%#v\n", err, respReadDec)
}

if respReadDec != nil {
if respReadEnc != nil && !respReadEnc.IsError() {
t.Fatalf("Read decrypted data that was supposed to be deleted: \n%#v", respReadDec)
}
}
Expand Down

0 comments on commit 136ab1f

Please sign in to comment.