mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-13 14:59:03 +00:00
bunch of probably useless micro optimisation
This commit is contained in:
@@ -162,10 +162,10 @@ func TestCreateGetTask(t *testing.T) {
|
||||
if taskResp.Task.Id == 0 {
|
||||
t.Error()
|
||||
}
|
||||
if taskResp.Task.Recipe != "{\"url\":\"test\"}" {
|
||||
if string(taskResp.Task.Recipe) != "{\"url\":\"test\"}" {
|
||||
t.Error()
|
||||
}
|
||||
if taskResp.Task.Status != "new" {
|
||||
if taskResp.Task.Status != 1 {
|
||||
t.Error()
|
||||
}
|
||||
if taskResp.Task.MaxRetries != 3 {
|
||||
|
||||
Reference in New Issue
Block a user