- printer test

This commit is contained in:
gazebo
2019-04-22 11:09:44 +08:00
parent b09999a722
commit 332e9b11a3
3 changed files with 17 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ func init() {
}
func TestPrinterAuth(t *testing.T) {
result, err := api.AuthPrinter("7JizmSyiXNzkggaqU", "", "")
result, err := api.AuthPrinter("notexist", "", "")
if err != nil {
t.Fatalf("PrinterAuth return error:%v", err)
}
@@ -45,7 +45,7 @@ func TestSendMsg(t *testing.T) {
}
func TestGetPrinterStatus(t *testing.T) {
runningStae, paperState, err := api.GetPrinterStatus("7JizmSyiXNzkggaqU", "177f213277dd842ba2b53f6c926a48ea")
runningStae, paperState, err := api.GetPrinterStatus("notexist", "fc613a8811f963debca940c76b75d162")
if err != nil {
t.Fatalf("GetPrinterStatus return error:%v", err)
}