Skip to content

Commit 4632ace

Browse files
committed
Enhance hot upgrade tests
Signed-off-by: Zephyr <zinsist777@gmail.com>
1 parent 88b234a commit 4632ace

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

smoke/tests/takeover_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
// Prepare: setup nydus for containerd, reference: https://github.com/dragonflyoss/nydus/blob/master/docs/containerd-env-setup.md.
2828

2929
const (
30-
HotUpgradeRepeatCount = 6
30+
hotUpgradeRepeatCount = 6
3131
configPath = "/etc/nydus/config.toml"
3232
)
3333

@@ -100,7 +100,7 @@ func (f *TakeoverTestSuit) TestAPIHotUpgrade(t *testing.T) {
100100
tool.RunContainerSimple(t, imageName, snapshotter, containerName, false)
101101
defer f.rmContainer(containerName)
102102

103-
//api trigger hot upgrade nydusd
103+
// api trigger hot upgrade nydusd
104104
for i := 0; i < HotUpgradeRepeatCount; i++ {
105105
nydusdPath := nydusdPaths[i%2]
106106
logrus.Debugf("API hot upgrade round %d, nydusd_path = %s", i+1, nydusdPath)
@@ -128,7 +128,7 @@ func (f *TakeoverTestSuit) TestRestartSnapshotterHotUpgrade(t *testing.T) {
128128
tool.RunContainerSimple(t, imageName, snapshotter, containerName, false)
129129
defer f.rmContainer(containerName)
130130

131-
//restart snapshotter trigger hot upgrade nydusd
131+
// restart snapshotter trigger hot upgrade nydusd
132132
for i := 0; i < HotUpgradeRepeatCount; i++ {
133133
nydusdPath := nydusdPaths[i%2]
134134
logrus.Debugf("Restart hot upgrade round %d, nydusd_path = %s", i+1, nydusdPath)

0 commit comments

Comments
 (0)