_shortlist_delete.txt 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. === RUN TestShortlistDelete
  2. 您正在使用func Viper()传递的值,config的路径为D:\lq\Smart Parking\lc_garage\config.yaml
  3. 2026/07/21 16:07:44 C:/Users/longc/go/pkg/mod/github.com/glebarez/sqlite@v1.11.0/migrator.go:274 SLOW SQL >= 200ms
  4. [251.373ms] [rows:0] CREATE INDEX `idx_payment_record_record_id` ON `payment_record`(`record_id`)
  5. [github.com/flipped-aurora/gin-vue-admin/server]2026/07/21 - 16:07:46.005 info D:/lq/Smart Parking/lc_garage/internal/initialize/gorm.go:67 register table success
  6. 2026/07/21 16:08:01 D:/lq/Smart Parking/lc_garage/internal/initialize/seed.go:436 SLOW SQL >= 200ms
  7. [241.078ms] [rows:1] INSERT INTO casbin_rule (ptype, v0, v1, v2, v3, v4, v5) VALUES ("p", "9527", "/sysDictionaryDetail/deleteSysDictionaryDetail", "DELETE", "", "", "")
  8. [github.com/flipped-aurora/gin-vue-admin/server]2026/07/21 - 16:08:04.786 info D:/lq/Smart Parking/lc_garage/internal/initialize/seed.go:498 system data seeded successfully
  9. 2026/07/21 16:08:09 D:/lq/Smart Parking/lc_garage/test/testutil/testenv.go:158 SLOW SQL >= 200ms
  10. [200.149ms] [rows:1] INSERT INTO `uhf_reader` (`created_at`,`updated_at`,`deleted_at`,`device_code`,`device_name`,`device_type`,`connect_type`,`ip_address`,`port`,`com_port`,`baud_rate`,`status`,`is_active`,`description`,`parking_lot_id`,`channel_id`) VALUES ("2026-07-21 16:08:09.294","2026-07-21 16:08:09.294",NULL,"UHF001","测试UHF读卡器","TCP","tcp","127.0.0.1",8000,"",9600,"offline",true,"",1,1) RETURNING `id`,`last_online_time`
  11. 2026/07/21 16:08:09 D:/lq/Smart Parking/lc_garage/test/testutil/testenv.go:175 record not found
  12. [0.504ms] [rows:0] SELECT * FROM `vehicle_type` WHERE (is_system = true AND name != "临时车") AND `vehicle_type`.`deleted_at` IS NULL ORDER BY `vehicle_type`.`id` LIMIT 1
  13. 无鉴权插件安装==》 &{[0x7ff6a3896980] / 0xc0016f1860 false}
  14. 鉴权插件安装==》 &{[0x7ff6a3896980] / 0xc0016f1860 false}
  15. [github.com/flipped-aurora/gin-vue-admin/server]2026/07/21 - 16:08:09.986 info D:/lq/Smart Parking/lc_garage/internal/initialize/router.go:68 register swagger handler
  16. [github.com/flipped-aurora/gin-vue-admin/server]2026/07/21 - 16:08:09.987 info D:/lq/Smart Parking/lc_garage/internal/initialize/router.go:116 router register success
  17. 2026/07/21 16:08:09 D:/lq/Smart Parking/lc_garage/internal/service/vehicle/vehicle.go:30 record not found
  18. [0.000ms] [rows:0] SELECT * FROM `vehicle` WHERE (plate_number = "JingDel001" OR rfid_tag = "RFID_DELETE") AND `vehicle`.`deleted_at` IS NULL ORDER BY `vehicle`.`id` LIMIT 1
  19. --- FAIL: TestShortlistDelete (31.33s)
  20. panic: interface conversion: interface {} is nil, not float64 [recovered, repanicked]
  21. goroutine 50 [running]:
  22. testing.tRunner.func1.2({0x7ff6a4518000, 0xc001c3cd20})
  23. C:/Users/longc/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.windows-amd64/src/testing/testing.go:1872 +0x239
  24. testing.tRunner.func1()
  25. C:/Users/longc/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.windows-amd64/src/testing/testing.go:1875 +0x35b
  26. panic({0x7ff6a4518000?, 0xc001c3cd20?})
  27. C:/Users/longc/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.windows-amd64/src/runtime/panic.go:783 +0x132
  28. wails-app/test/testutil.TestShortlistDelete(0xc000106fc0)
  29. D:/lq/Smart Parking/lc_garage/test/testutil/e2e_edge_cases_test.go:242 +0x329
  30. testing.tRunner(0xc000106fc0, 0x7ff6a4d66bf0)
  31. C:/Users/longc/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.windows-amd64/src/testing/testing.go:1934 +0xc3
  32. created by testing.(*T).Run in goroutine 1
  33. C:/Users/longc/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.25.0.windows-amd64/src/testing/testing.go:1997 +0x44b
  34. FAIL wails-app/test/testutil 31.635s
  35. FAIL