refactor(src/adapter.rs): avoid panic in tests, return error instead
modified src/adapter.rs
@@ -223,17 +223,17 @@ mod test {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -250,7 +250,7 @@ echo '{"response":"finished","result":"success"}'
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -271,7 +271,7 @@ echo '{"response":"finished","result":"failure"}'
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -299,7 +299,7 @@ exit 1
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -320,7 +320,7 @@ kill -9 $BASHPID
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -345,7 +345,7 @@ kill -9 $BASHPID
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -368,7 +368,7 @@ kill -9 $BASHPID
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -390,7 +390,7 @@ echo '{"response":"finished","result":"success","bad":"field"}'
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -414,7 +414,7 @@ echo '{"response":"finished","result":"success"}'
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -442,7 +442,7 @@ echo '{"response":"finished","result":"success"}'
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -462,7 +462,7 @@ echo '{"response":"finished","result":"success"}'
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -490,7 +490,7 @@ echo '{"response":"finished","result":"success"}'
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -522,7 +522,7 @@ echo '{"response":"finished","result":"success"}'
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|