samuong / alpaca

A local HTTP proxy for command-line tools. Supports PAC scripts and NTLM authentication.
Apache License 2.0
184 stars 31 forks source link

Unit tests for weekdayRange fail #46

Closed samuong closed 4 years ago

samuong commented 4 years ago
                Error:          Not equal: 
                                expected: false
                                actual  : true
                Test:           TestWeekdayRange/M-F_UTC_MON
    --- FAIL: TestWeekdayRange/M-F_UTC_SAT (0.00s)
        pacrunner_test.go:327: 
                Error Trace:    pacrunner_test.go:327
                Error:          Not equal: 
                                expected: true
                                actual  : false
                Test:           TestWeekdayRange/M-F_UTC_SAT
    --- FAIL: TestWeekdayRange/SAT_UTC_SUN (0.00s)
        pacrunner_test.go:327: 
                Error Trace:    pacrunner_test.go:327
                Error:          Not equal: 
                                expected: true
                                actual  : false
                Test:           TestWeekdayRange/SAT_UTC_SUN
    --- FAIL: TestWeekdayRange/SAT_UTC_SAT (0.00s)
        pacrunner_test.go:327: 
                Error Trace:    pacrunner_test.go:327
                Error:          Not equal: 
                                expected: false
                                actual  : true
                Test:           TestWeekdayRange/SAT_UTC_SAT
FAIL
FAIL    github.com/samuong/alpaca   0.271s
ok      github.com/samuong/alpaca/cancelable    0.003s

Will have to investigate more but this is what I'm seeing.

Originally posted by @jamesmoriarty in https://github.com/samuong/alpaca/pull/45/files

camh- commented 4 years ago

Easily reproduced locally with TZ=UTC go test (once the test is re-enabled by removing/commenting-out the t.Skip)