Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use require to prevent a panic when dereferencing a nil pointer
This is a workaround to simply prevent a panic from occurring. What's happening here is the test is expecting two relationships to be included in the response, CurrentVersion and NewestVersion, but was subject to the overall flakiness of our CI environment. This commit does not fix nor prevent the flakiness. Why `require` and not `assert`? `require` makes the same calls as `assert` except it will terminate the execution of a test upon failure. Using `assert` would still continue the test's execution, dereference a nil pointer, and boom panic!
- Loading branch information
1 parent
dc641ab
commit 859701a
Showing
32 changed files
with
174 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.