@@ -46,8 +46,8 @@ func TestWipeoutBuildPathIfBuildOptionsChanged(t *testing.T) {
4646 buildPath := SetupBuildPath (t , ctx )
4747 defer os .RemoveAll (buildPath )
4848
49- ctx .BuildOptionsJsonPrevious = "old"
50- ctx .BuildOptionsJson = "new"
49+ ctx .BuildOptionsJsonPrevious = "{ \" old\" : \" old \" } "
50+ ctx .BuildOptionsJson = "{ \" new\" : \" new \" } "
5151
5252 utils .TouchFile (filepath .Join (buildPath , "should_be_deleted.txt" ))
5353
@@ -77,7 +77,7 @@ func TestWipeoutBuildPathIfBuildOptionsChangedNoPreviousBuildOptions(t *testing.
7777 buildPath := SetupBuildPath (t , ctx )
7878 defer os .RemoveAll (buildPath )
7979
80- ctx .BuildOptionsJson = "new"
80+ ctx .BuildOptionsJson = "{ \" new\" : \" new \" } "
8181
8282 utils .TouchFile (filepath .Join (buildPath , "should_not_be_deleted.txt" ))
8383
@@ -107,8 +107,8 @@ func TestWipeoutBuildPathIfBuildOptionsChangedBuildOptionsMatch(t *testing.T) {
107107 buildPath := SetupBuildPath (t , ctx )
108108 defer os .RemoveAll (buildPath )
109109
110- ctx .BuildOptionsJsonPrevious = "options "
111- ctx .BuildOptionsJson = "options "
110+ ctx .BuildOptionsJsonPrevious = "{ \" old \" : \" old \" } "
111+ ctx .BuildOptionsJson = "{ \" old \" : \" old \" } "
112112
113113 utils .TouchFile (filepath .Join (buildPath , "should_not_be_deleted.txt" ))
114114
0 commit comments