Update provisioner_test.go
fix TestProvisioner_RemoteFileDefaultsToScriptnnnn
This commit is contained in:
@@ -491,7 +491,7 @@ func TestProvisioner_RemoteFileDefaultsToScriptnnnn(t *testing.T) {
|
||||
t.Fatalf("should not have error: %s", err)
|
||||
}
|
||||
|
||||
remoteFileRegex := regexp.MustCompile("script_[0-9]{4}.sh")
|
||||
remoteFileRegex := regexp.MustCompile("script_[0-9]{1,4}.sh")
|
||||
|
||||
if !remoteFileRegex.MatchString(p.config.RemoteFile) {
|
||||
t.Fatalf("remote_file did not default to script_nnnn.sh: %q", p.config.RemoteFile)
|
||||
|
||||
Reference in New Issue
Block a user