Skip to content

Commit 2aa6c44

Browse files
committed
test/screentest: remove unneeded seeds
Remove modules that don't matter from the list of modules used to seed the database in ci mode. Also combine two identical tests. Change-Id: I979ed07ce1f3bdf0fa164e46643cffefcdce45e3 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/626003 Reviewed-by: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> kokoro-CI: kokoro <[email protected]>
1 parent 6386050 commit 2aa6c44

File tree

7 files changed

+3
-12
lines changed

7 files changed

+3
-12
lines changed

internal/postgres/symbol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,6 @@ func deleteOldSymbolSearchDocuments(ctx context.Context, db *database.DB,
459459
if err != nil {
460460
return err
461461
}
462-
log.Infof(ctx, "deleted %d rows from symbol_search_documents", n)
462+
log.Debugf(ctx, "deleted %d rows from symbol_search_documents", n)
463463
return nil
464464
}

tests/screentest/seed.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ golang.org/x/tools/[email protected]
3232
github.com/jackc/[email protected]+incompatible
3333
3434
rsc.io/quote@all
35-
rsc.io/quote/v2@all
36-
rsc.io/quote/v3@all
37-
rsc.io/quote/v4@all
35+
rsc.io/quote/[email protected]
3836
3937
4038

tests/screentest/testcases.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ block https://codecov.io/* https://travis-ci.com/*
1010
{{$hideElements := "document.querySelector(\"[data-test-id='UnitHeader-importedby']\")?.remove();document.querySelector(\"[data-test-id='meta-link-depsdev']\")?.remove();"}}
1111
{{$scrollTop := "window.scrollTo({top:0});"}}
1212

13-
test short readme has no toggle
13+
test short readme has no toggle and higher major version
1414
pathname /rsc.io/quote
1515
wait {{$ready}}
1616
eval {{$hideElements}}
@@ -108,13 +108,6 @@ eval {{$hideElements}}
108108
capture viewport
109109
capture viewport 540x1080
110110

111-
test package with higher major version
112-
pathname /rsc.io/quote
113-
wait {{$ready}}
114-
eval {{$hideElements}}
115-
capture viewport
116-
capture viewport 540x1080
117-
118111
test package with multi-GOOS
119112
pathname /github.com/creack/[email protected]
120113
wait {{$ready}}
Binary file not shown.
-108 KB
Binary file not shown.

0 commit comments

Comments
 (0)