mirror of
				https://github.com/appleboy/drone-ssh.git
				synced 2025-10-29 00:51:15 +08:00 
			
		
		
		
	fixed unit test
This commit is contained in:
		
							parent
							
								
									a1294ae508
								
							
						
					
					
						commit
						8b824ce040
					
				| @ -30,14 +30,14 @@ func TestRun(t *testing.T) { | |||||||
| 	params := &Params{ | 	params := &Params{ | ||||||
| 		Commands: []string{"whoami", "time", "ps -ax"}, | 		Commands: []string{"whoami", "time", "ps -ax"}, | ||||||
| 		Login:    user, | 		Login:    user, | ||||||
| 		Host:     host, | 		Host:     StrSlice{[]string{host}}, | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	keys := &plugin.Keypair{ | 	keys := &plugin.Keypair{ | ||||||
| 		Private: string(out), | 		Private: string(out), | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	err = run(keys, params) | 	err = run(keys, params, host) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		t.Errorf("Unable to run SSH commands. %s.", err) | 		t.Errorf("Unable to run SSH commands. %s.", err) | ||||||
| 	} | 	} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Brad Rydzewski
						Brad Rydzewski