see what's wrong with that weird test

pull/8889/head
Adrien Delorme 6 years ago
parent a9255c6ebe
commit f1c0a9cdbd

@ -494,11 +494,11 @@ func TestProvisioner_RemoteFileDefaultsToScriptnnnn(t *testing.T) {
remoteFileRegex := regexp.MustCompile("script_[0-9]{4}.sh")
if !remoteFileRegex.MatchString(p.config.RemoteFile) {
t.Fatalf("remote_file did not default to script_nnnn.sh")
t.Fatalf("remote_file did not default to script_nnnn.sh: %q", p.config.RemoteFile)
}
if !remoteFileRegex.MatchString(p.config.RemotePath) {
t.Fatalf("remote_path did not match script_nnnn.sh")
t.Fatalf("remote_path did not match script_nnnn.sh: %q", p.config.RemotePath)
}
}

Loading…
Cancel
Save