Skip to content

Commit

Permalink
Instead of trying to reset, just build a new Mock UserAgent. The hope…
Browse files Browse the repository at this point in the history
… is that helps with some intermittent failures due to some async tests running in test suites with thousands of tests.
  • Loading branch information
robotdan committed Jan 31, 2025
1 parent 9e7a8cc commit 5f5490e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.savant
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ logbackVersion = "1.4.14"
slf4jVersion = "2.0.13"
testngVersion = "7.8.0"

project(group: "org.primeframework", name: "prime-mvc", version: "4.29.1", licenses: ["ApacheV2_0"]) {
project(group: "org.primeframework", name: "prime-mvc", version: "4.29.2", licenses: ["ApacheV2_0"]) {
workflow {
fetch {
// Dependency resolution order:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.primeframework</groupId>
<artifactId>prime-mvc</artifactId>
<version>4.29.1</version>
<version>4.29.2</version>
<packaging>jar</packaging>

<name>FusionAuth App</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2023, Inversoft Inc., All Rights Reserved
* Copyright (c) 2012-2025, Inversoft Inc., All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -34,8 +34,6 @@ public class RequestSimulator {

public final TestPrimeMainThread thread;

public final MockUserAgent userAgent;

public int actualPort = -1;

public int port;
Expand All @@ -44,6 +42,8 @@ public class RequestSimulator {

public boolean useTLS;

public MockUserAgent userAgent;

/**
* Creates a new request simulator that can be used to simulate requests to a Prime application.
*
Expand Down Expand Up @@ -112,7 +112,7 @@ public int getPort() {

public void reset() {
actualPort = -1;
userAgent.clearAllCookies();
userAgent = new MockUserAgent();
useTLS = false;
}

Expand Down

0 comments on commit 5f5490e

Please sign in to comment.