Skip to content

Commit e976665

Browse files
authored
Update reload.go
1 parent 8444cb7 commit e976665

File tree

1 file changed

+5
-1
lines changed
  • framework/components/simple_node_set

1 file changed

+5
-1
lines changed

framework/components/simple_node_set/reload.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ import (
1515
// UpgradeNodeSet updates nodes configuration TOML files
1616
// this API is discouraged, however, you can use it if nodes require restart or configuration updates, temporarily!
1717
func UpgradeNodeSet(t *testing.T, in *Input, bc *blockchain.Output, wait time.Duration) (*Output, error) {
18-
uniq := fmt.Sprintf("%s-%s-%s", framework.DefaultCTFLogsDir, t.Name(), uuid.NewString()[0:4])
18+
return UpgradeNodeSetWithTag(t.Name(), in, bc, wait)
19+
}
20+
21+
func UpgradeNodeSetWithTag(tag string, in *Input, bc *blockchain.Output, wait time.Duration) (*Output, error) {
22+
uniq := fmt.Sprintf("%s-%s-%s", framework.DefaultCTFLogsDir, tag, uuid.NewString()[0:4])
1923
if _, err := framework.SaveContainerLogs(uniq); err != nil {
2024
return nil, err
2125
}

0 commit comments

Comments
 (0)