Fix InnerMain test
This commit is contained in:
		
							parent
							
								
									28639b4cac
								
							
						
					
					
						commit
						31c0753341
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -37,14 +37,14 @@ func Test_InnerMain(t *testing.T) { | ||||||
| 
 | 
 | ||||||
| 	// These methods should fail without an account | 	// These methods should fail without an account | ||||||
| 	assert.Error(t, InnerMain("radar")) | 	assert.Error(t, InnerMain("radar")) | ||||||
| 	assert.Error(t, InnerMain("rover")) | 	assert.Error(t, InnerMain("status")) | ||||||
| 
 | 
 | ||||||
| 	// Now set the name | 	// Now set the name | ||||||
| 	assert.NoError(t, InnerMain("register", uuid.New().String())) | 	assert.NoError(t, InnerMain("register", uuid.New().String())) | ||||||
| 
 | 
 | ||||||
| 	// These should now work | 	// These should now work | ||||||
| 	assert.NoError(t, InnerMain("radar")) | 	assert.NoError(t, InnerMain("radar")) | ||||||
| 	assert.NoError(t, InnerMain("rover")) | 	assert.NoError(t, InnerMain("status")) | ||||||
| 
 | 
 | ||||||
| 	// Commands should fail with no commands | 	// Commands should fail with no commands | ||||||
| 	assert.Error(t, InnerMain("commands")) | 	assert.Error(t, InnerMain("commands")) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue