Skip to content

Commit

Permalink
fix mobile-view test
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRyanSmith committed Feb 6, 2025
1 parent 32e00a4 commit 06b857c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webapp/interop_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ func TestInteropHandler_success(t *testing.T) {

func TestInteropHandler_mobileSuccess(t *testing.T) {
// A typical "/interop-20XX" path with a valid mobile year should not redirect.
// 2024 is the most recent interop year with a valid mobile view.
req := httptest.NewRequest(
"GET", "/interop-"+defaultRedirectYear+"?mobile-view", strings.NewReader("{}"))
"GET", "/interop-2024?mobile-view", strings.NewReader("{}"))
req = mux.SetURLVars(req, map[string]string{
"name": "interop",
"year": defaultRedirectYear,
"year": "2024",
"mobileView": "true",
})

Expand Down

0 comments on commit 06b857c

Please sign in to comment.