Browse code
returns empty token on failure
Showing 1 changed files
... | ... |
@@ -84,10 +84,11 @@ int unistd_does_not_find_user_name() { |
84 | 84 |
|
85 | 85 |
|
86 | 86 |
//when |
87 |
- installer.install_token(); |
|
87 |
+ auto returned = installer.install_token(); |
|
88 | 88 |
|
89 | 89 |
//then |
90 | 90 |
check(test_tokens->captured_token == "", "should not have installed a token"); |
91 |
+ check(returned == "", "did not return empty token"); |
|
91 | 92 |
succeed(); |
92 | 93 |
} |
93 | 94 |
|
... | ... |
@@ -103,10 +104,11 @@ int directory_finds_no_user_info() { |
103 | 104 |
installer installer = installer::create (tokens, unistd, directory, generator); |
104 | 105 |
|
105 | 106 |
//when |
106 |
- installer.install_token(); |
|
107 |
+ auto returned = installer.install_token(); |
|
107 | 108 |
|
108 | 109 |
//then |
109 | 110 |
check(test_tokens->captured_token == "", "installed wrong token"); |
111 |
+ check(returned == "", "did not return empty token"); |
|
110 | 112 |
succeed(); |
111 | 113 |
} |
112 | 114 |
|