@@ -46,8 +46,8 @@ func TestWipeoutBuildPathIfBuildOptionsChanged(t *testing.T) {
46
46
buildPath := SetupBuildPath (t , ctx )
47
47
defer os .RemoveAll (buildPath )
48
48
49
- ctx .BuildOptionsJsonPrevious = "old"
50
- ctx .BuildOptionsJson = "new"
49
+ ctx .BuildOptionsJsonPrevious = "{ \" old\" : \" old \" } "
50
+ ctx .BuildOptionsJson = "{ \" new\" : \" new \" } "
51
51
52
52
utils .TouchFile (filepath .Join (buildPath , "should_be_deleted.txt" ))
53
53
@@ -77,7 +77,7 @@ func TestWipeoutBuildPathIfBuildOptionsChangedNoPreviousBuildOptions(t *testing.
77
77
buildPath := SetupBuildPath (t , ctx )
78
78
defer os .RemoveAll (buildPath )
79
79
80
- ctx .BuildOptionsJson = "new"
80
+ ctx .BuildOptionsJson = "{ \" new\" : \" new \" } "
81
81
82
82
utils .TouchFile (filepath .Join (buildPath , "should_not_be_deleted.txt" ))
83
83
@@ -107,8 +107,8 @@ func TestWipeoutBuildPathIfBuildOptionsChangedBuildOptionsMatch(t *testing.T) {
107
107
buildPath := SetupBuildPath (t , ctx )
108
108
defer os .RemoveAll (buildPath )
109
109
110
- ctx .BuildOptionsJsonPrevious = "options "
111
- ctx .BuildOptionsJson = "options "
110
+ ctx .BuildOptionsJsonPrevious = "{ \" old \" : \" old \" } "
111
+ ctx .BuildOptionsJson = "{ \" old \" : \" old \" } "
112
112
113
113
utils .TouchFile (filepath .Join (buildPath , "should_not_be_deleted.txt" ))
114
114
0 commit comments