mirror of
https://github.com/Jguer/yay.git
synced 2025-10-15 00:02:26 -04:00
Switch the TZ to UTC temporarily for running the News tests (#2121)
* switch the TZ to UTC temporarily for running the tests * Remove unnecessary environment reset * Set test specific environment. Co-authored-by: Jo <me@jguer.space> --------- Co-authored-by: Jo <me@jguer.space>
This commit is contained in:
parent
822b11b4d6
commit
15400c5fc5
@ -121,6 +121,7 @@ func TestPrintNewsFeed(t *testing.T) {
|
||||
{name: "latest-quiet", args: args{bottomUp: true, cutOffDate: lastNewsTime, all: false, quiet: true}, wantErr: false},
|
||||
{name: "latest-quiet-topdown", args: args{bottomUp: false, cutOffDate: lastNewsTime, all: false, quiet: true}, wantErr: false},
|
||||
}
|
||||
t.Setenv("TZ", "UTC")
|
||||
for _, tt := range tests {
|
||||
tt := tt
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user