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

Commit

Permalink
Fix unit test depending on nginx saved files, too strict check on vol…
Browse files Browse the repository at this point in the history
…ume size

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
  • Loading branch information
gtardif committed Jan 13, 2023
1 parent e5934d7 commit 2fcef84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm/internal/handler/save_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ func TestSaveVolume(t *testing.T) {
require.Len(t, summary, 1)
require.Equal(t, imageID, summary[0].RepoTags[0])
t.Logf("Image size after saving volume into it: %d", summary[0].Size)
require.Regexp(t, `124\d{4}`, strconv.FormatInt(summary[0].Size, 10), "the image size should be around 1.24MB")
require.Regexp(t, `\d{7}`, strconv.FormatInt(summary[0].Size, 10), "the image size should be between 1 and 10 MB")
}

0 comments on commit 2fcef84

Please sign in to comment.