Skip to content

Commit

Permalink
Adds in digital coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed Oct 17, 2020
1 parent 096aee7 commit 112ebdd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions recordadderutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,19 @@ func TestRunThroughWithAddFail(t *testing.T) {
}
}

func TestRunThroughWithDigitalAddFail(t *testing.T) {
s := InitTestServer()
tc := &testCollection{fail: true}
s.rc = tc

s.AddRecord(context.Background(), &pb.AddRecordRequest{Id: 12, Folder: 242018, Cost: 12, Arrived: true})

err := s.processQueue(context.Background())
if err == nil {
t.Errorf("No error processing the queue with failing add")
}
}

func TestWithBadAdd(t *testing.T) {
s := InitTestServer()

Expand Down

0 comments on commit 112ebdd

Please sign in to comment.