doc: report project metadata update time (#286)
This commit is contained in:
committed by
GitHub
parent
bdaad2bb98
commit
88c126385a
5
tests/thirdparty/metadata_test.go
vendored
5
tests/thirdparty/metadata_test.go
vendored
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"flag"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/mmcloughlin/avo/internal/github"
|
||||
"github.com/mmcloughlin/avo/internal/test"
|
||||
@@ -50,6 +51,10 @@ func TestSuiteFileMetadata(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
if *update {
|
||||
s.MetadataLastUpdate = time.Now().UTC()
|
||||
}
|
||||
|
||||
if err := StoreSuiteFile("suite.json", s); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user