@@ -82,15 +82,14 @@ func TestSetContext(t *testing.T) {
8282 reset (ac )
8383
8484 // when collection id and environment id is provided successfully and the number of context options is more than 1
85- F := false
8685 ac .Init ("a" , "b" , "c" )
8786 ac .isInitialized = true
8887 ac .SetContext ("c1" , "dev" , ContextOptions {
8988 BootstrapFile : "saflights/flights.json" ,
90- LiveConfigUpdateEnabled : & F ,
89+ LiveConfigUpdateEnabled : false ,
9190 }, ContextOptions {
9291 BootstrapFile : "saflights/flights.json" ,
93- LiveConfigUpdateEnabled : & F ,
92+ LiveConfigUpdateEnabled : false ,
9493 })
9594 if hook .LastEntry ().Message != "AppConfiguration - Incorrect usage of context options. At most of one ContextOptions struct should be passed." {
9695 t .Errorf ("Test failed: Incorrect error message" )
@@ -103,7 +102,7 @@ func TestSetContext(t *testing.T) {
103102 assert .Equal (t , false , ac .isInitializedConfig )
104103 ac .SetContext ("c1" , "dev" , ContextOptions {
105104 BootstrapFile : "saflights/flights.json" ,
106- LiveConfigUpdateEnabled : & F ,
105+ LiveConfigUpdateEnabled : false ,
107106 })
108107 assert .Equal (t , true , ac .isInitializedConfig )
109108 reset (ac )
@@ -114,9 +113,9 @@ func TestSetContext(t *testing.T) {
114113 assert .Equal (t , false , ac .isInitializedConfig )
115114 ac .SetContext ("c1" , "dev" , ContextOptions {
116115 BootstrapFile : "" ,
117- LiveConfigUpdateEnabled : & F ,
116+ LiveConfigUpdateEnabled : false ,
118117 })
119- if hook .LastEntry ().Message != "AppConfiguration - Provide configuration_file value when live_config_update_enabled is false." {
118+ if hook .LastEntry ().Message != "AppConfiguration - Provide bootstrap_file value when live_config_update_enabled is false." {
120119 t .Errorf ("Test failed: Incorrect error message" )
121120 }
122121 reset (ac )
0 commit comments