package pusher import ( "sylixos-uploader/common" "sylixos-uploader/log" "testing" ) func TestPush(t *testing.T) { p := NewFtpPusher("10.13.16.202") if err := p.Login(common.SylixOSUser, common.SylixOSPassword); err != nil { t.Error(err) } defer p.Logout() err := p.Push("./", "/apps/ftp_pusher_test", log.DefaultLogger, log.DefaultClearLinesUp) if err != nil { t.Error(err) } }