Skip to content

Commit

Permalink
progressbar: remove duplicate assertions (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmethakanbesel committed Aug 8, 2023
1 parent 4c30eb3 commit f75c262
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions progressbar/progressbar_test.go
Expand Up @@ -38,8 +38,7 @@ func TestCommandProgress_AddCompletedBytes(t *testing.T) {
cp.Start()
bytes := int64(101)
cp.AddCompletedBytes(bytes)
assert.Equal(t, int64(101), cp.progressbar.Current())
assert.Equal(t, int64(bytes), cp.progressbar.Current())
assert.Equal(t, bytes, cp.progressbar.Current())
assert.Equal(t, true, strings.Contains(cp.progressbar.String(), "101 B"))
}

Expand All @@ -49,7 +48,6 @@ func TestCommandProgress_AddTotalBytes(t *testing.T) {
cp.Start()
bytes := int64(102)
cp.AddTotalBytes(bytes)
assert.Equal(t, int64(102), cp.progressbar.Total())
assert.Equal(t, bytes, cp.progressbar.Total())
assert.Equal(t, true, strings.Contains(cp.progressbar.String(), "102 B"))
}

0 comments on commit f75c262

Please sign in to comment.