mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-07-23 04:56:07 +00:00
chore: bump deps and modernize test loops
- release.yml: download-artifact v7 -> v8 - frontend: i18next 26.3.1 -> 26.3.2, qs 6.15.2 -> 6.15.3 - go.mod: consolidate indirect requires (go mod tidy) - tests: adopt Go 1.22 range-over-int loops
This commit is contained in:
@@ -27,12 +27,12 @@ func TestStatsForClient_OrphanedInboundIdFallback(t *testing.T) {
|
||||
|
||||
db := database.GetDB()
|
||||
if err := db.Create(&xray.ClientTraffic{
|
||||
InboundId: 999,
|
||||
Email: email,
|
||||
Up: 15 * gb,
|
||||
Down: 5 * gb,
|
||||
Total: total,
|
||||
Enable: true,
|
||||
InboundId: 999,
|
||||
Email: email,
|
||||
Up: 15 * gb,
|
||||
Down: 5 * gb,
|
||||
Total: total,
|
||||
Enable: true,
|
||||
}).Error; err != nil {
|
||||
t.Fatalf("seed orphaned traffic: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user