Skip to content

Commit

Permalink
unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianAtDell committed Jan 7, 2025
1 parent 0872b53 commit 44a573c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@ func TestPageVolumes(t *testing.T) {
select {
case v, ok := <-cvol:
if !ok {
Expect(err).To(BeNil())
Expect(vols).To(HaveLen(4))
return
}
vols = append(vols, v)
Expand All @@ -579,8 +581,6 @@ func TestPageVolumes(t *testing.T) {
}
}

Check failure on line 583 in utils/utils_test.go

View workflow job for this annotation

GitHub Actions / Golang Validation / Lint golang code

File is not properly formatted (gofumpt)
Expect(err).To(BeNil())
Expect(vols).To(HaveLen(4))
}

func TestPageSnapshots(t *testing.T) {
Expand All @@ -603,6 +603,8 @@ func TestPageSnapshots(t *testing.T) {
select {
case v, ok := <-csnap:
if !ok {
Expect(err).To(BeNil())
Expect(snaps).To(HaveLen(4))
return
}
snaps = append(snaps, v)
Expand All @@ -613,9 +615,6 @@ func TestPageSnapshots(t *testing.T) {
err = e
}
}

Expect(err).To(BeNil())
Expect(snaps).To(HaveLen(3))
}

// struct for error injection testing with GRPCStatus
Expand Down

0 comments on commit 44a573c

Please sign in to comment.