Advertisement
Guest User

golang errors

a guest
Nov 9th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. -------------------------------------------------------------------
  2. t.Run
  3. -------------------------------------------------------------------
  4.  
  5. Running tool: /usr/local/go/bin/go test -timeout 30s github.plaid.com/plaid/go.git/services/item_manager/occurrences -run ^TestGetLegacyErrorStateFields$ -v
  6.  
  7. === RUN TestGetLegacyErrorStateFields
  8. === RUN TestGetLegacyErrorStateFields/TestGetLegacyErrorStateFields:_test_case_0:_unretryable_error
  9. === RUN TestGetLegacyErrorStateFields/TestGetLegacyErrorStateFields:_test_case_1:_retryable_error
  10. === RUN TestGetLegacyErrorStateFields/TestGetLegacyErrorStateFields:_test_case_2:_irreconcilable_state_-_all_legacy_fields_false
  11. === RUN TestGetLegacyErrorStateFields/TestGetLegacyErrorStateFields:_test_case_3:_good_state
  12. --- FAIL: TestGetLegacyErrorStateFields (0.00s)
  13. /Users/omezenner/work/go/src/github.plaid.com/plaid/go.git/services/item_manager/occurrences/test_cases.go:29:
  14. Error Trace: test_cases.go:29
  15. Error: Not equal:
  16. expected: item_state.OccurrenceLegacyErrorState{Reason:"mfa reset", Status:true, IsUserError:false, XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}
  17. actual : item_state.OccurrenceLegacyErrorState{Reason:"mfa reset", Status:true, IsUserError:true, XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}
  18.  
  19. Diff:
  20. --- Expected
  21. +++ Actual
  22. @@ -1,2 +1,2 @@
  23. -(item_state.OccurrenceLegacyErrorState) reason:"mfa reset" status:true
  24. +(item_state.OccurrenceLegacyErrorState) reason:"mfa reset" status:true is_user_error:true
  25.  
  26. Test: TestGetLegacyErrorStateFields
  27. --- PASS: TestGetLegacyErrorStateFields/TestGetLegacyErrorStateFields:_test_case_0:_unretryable_error (0.00s)
  28. --- PASS: TestGetLegacyErrorStateFields/TestGetLegacyErrorStateFields:_test_case_1:_retryable_error (0.00s)
  29. --- PASS: TestGetLegacyErrorStateFields/TestGetLegacyErrorStateFields:_test_case_2:_irreconcilable_state_-_all_legacy_fields_false (0.00s)
  30. --- PASS: TestGetLegacyErrorStateFields/TestGetLegacyErrorStateFields:_test_case_3:_good_state (0.00s)
  31. FAIL
  32. FAIL github.plaid.com/plaid/go.git/services/item_manager/occurrences 3.013s
  33. Error: Tests failed
  34.  
  35. -------------------------------------------------------------------
  36. t.Logf
  37. -------------------------------------------------------------------
  38.  
  39. Running tool: /usr/local/go/bin/go test -timeout 30s github.plaid.com/plaid/go.git/services/item_manager/occurrences -run ^TestGetLegacyErrorStateFields$ -v
  40.  
  41. === RUN TestGetLegacyErrorStateFields
  42. --- FAIL: TestGetLegacyErrorStateFields (0.00s)
  43. /Users/omezenner/work/go/src/github.plaid.com/plaid/go.git/services/item_manager/occurrences/test_cases.go:33: TestGetLegacyErrorStateFields: test case 0: unretryable error
  44. /Users/omezenner/work/go/src/github.plaid.com/plaid/go.git/services/item_manager/occurrences/test_cases.go:29:
  45. Error Trace: test_cases.go:29
  46. test_cases.go:34
  47. legacy_test.go:78
  48. Error: Not equal:
  49. expected: item_state.OccurrenceLegacyErrorState{Reason:"mfa reset", Status:true, IsUserError:false, XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}
  50. actual : item_state.OccurrenceLegacyErrorState{Reason:"mfa reset", Status:true, IsUserError:true, XXX_NoUnkeyedLiteral:struct {}{}, XXX_unrecognized:[]uint8(nil), XXX_sizecache:0}
  51.  
  52. Diff:
  53. --- Expected
  54. +++ Actual
  55. @@ -1,2 +1,2 @@
  56. -(item_state.OccurrenceLegacyErrorState) reason:"mfa reset" status:true
  57. +(item_state.OccurrenceLegacyErrorState) reason:"mfa reset" status:true is_user_error:true
  58.  
  59. Test: TestGetLegacyErrorStateFields
  60. /Users/omezenner/work/go/src/github.plaid.com/plaid/go.git/services/item_manager/occurrences/test_cases.go:33: TestGetLegacyErrorStateFields: test case 1: retryable error
  61. /Users/omezenner/work/go/src/github.plaid.com/plaid/go.git/services/item_manager/occurrences/test_cases.go:33: TestGetLegacyErrorStateFields: test case 2: irreconcilable state - all legacy fields false
  62. /Users/omezenner/work/go/src/github.plaid.com/plaid/go.git/services/item_manager/occurrences/test_cases.go:33: TestGetLegacyErrorStateFields: test case 3: good state
  63. FAIL
  64. FAIL github.plaid.com/plaid/go.git/services/item_manager/occurrences 2.977s
  65. Error: Tests failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement