Fossil SCM

Fixes to the 'json' test file.

mistachkin 2021-04-02 03:38 trunk
Commit e9def3b785a4d4f06e95b01fbe32762a83864a0dc5954e3882e53622981fca24
1 file changed +1 -1
+1 -1
--- test/json.test
+++ test/json.test
@@ -55,11 +55,11 @@
5555
if {$JR eq ""} {
5656
puts "Fossil was not compiled with JSON support (bad JSON)."
5757
test_cleanup_then_return
5858
}
5959
test json-1 {[dict exists $JR resultCode]
60
- && [dict get $JR resultCode] eq "FOSSIL-4102"}
60
+ && [dict get $JR resultCode] in "FOSSIL-3002 FOSSIL-4102"}
6161
6262
# Use the CLI interface to execute a JSON command. Sets the global
6363
# RESULT to the response text, and JR to a Tcl dict conversion of the
6464
# response body.
6565
#
6666
--- test/json.test
+++ test/json.test
@@ -55,11 +55,11 @@
55 if {$JR eq ""} {
56 puts "Fossil was not compiled with JSON support (bad JSON)."
57 test_cleanup_then_return
58 }
59 test json-1 {[dict exists $JR resultCode]
60 && [dict get $JR resultCode] eq "FOSSIL-4102"}
61
62 # Use the CLI interface to execute a JSON command. Sets the global
63 # RESULT to the response text, and JR to a Tcl dict conversion of the
64 # response body.
65 #
66
--- test/json.test
+++ test/json.test
@@ -55,11 +55,11 @@
55 if {$JR eq ""} {
56 puts "Fossil was not compiled with JSON support (bad JSON)."
57 test_cleanup_then_return
58 }
59 test json-1 {[dict exists $JR resultCode]
60 && [dict get $JR resultCode] in "FOSSIL-3002 FOSSIL-4102"}
61
62 # Use the CLI interface to execute a JSON command. Sets the global
63 # RESULT to the response text, and JR to a Tcl dict conversion of the
64 # response body.
65 #
66

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button