Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritysdx committed Jul 4, 2024
1 parent e5f29dc commit 18a0de4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions goecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
)

var (
ecsVersion = "v0.0.35"
ecsVersion = "v0.0.36"
menuMode bool
onlyChinaTest bool
input, choice string
Expand Down Expand Up @@ -408,17 +408,25 @@ func main() {
disktest.DiskTest(language, diskTestMethod, diskTestPath, diskMultiCheck)
}
}, tempOutput, output)
if emailTestStatus {
if utTestStatus {
wg1.Add(1)
go func() {
defer wg1.Done()
mediaInfo = unlocktest.MediaTest(language)
}()
}
if emailTestStatus {
wg2.Add(1)
go func() {
defer wg2.Done()
emailInfo = email.EmailCheck()
}()
}
output = utils.PrintAndCapture(func() {
if utTestStatus {
utils.PrintCenteredTitle("Cross-Border-Streaming-Media-Unlock", width)
unlocktest.MediaTest(language)
wg1.Wait()
fmt.Printf(mediaInfo)
}
}, tempOutput, output)
output = utils.PrintAndCapture(func() {
Expand All @@ -430,7 +438,7 @@ func main() {
output = utils.PrintAndCapture(func() {
if emailTestStatus {
utils.PrintCenteredTitle("Email-Port-Check", width)
wg1.Wait()
wg2.Wait()
fmt.Println(emailInfo)
}
}, tempOutput, output)
Expand Down

0 comments on commit 18a0de4

Please sign in to comment.