Skip to content

Releases: launchdarkly/go-test-helpers

v3.0.2

30 Aug 17:02
Compare
Choose a tag to compare

[3.0.2] - 2022-08-30

Fixed:

  • Test assertion helpers now call t.Helper() to exclude themselves from stacktraces.

v3.0.1

29 Aug 18:37
Compare
Choose a tag to compare

[3.0.1] - 2022-08-29

Fixed:

  • Fixed import paths to have /v3.

v3.0.0

29 Aug 18:28
Compare
Choose a tag to compare

[3.0.0] - 2022-08-29

Added:

  • TryReceive, RequireValue, AssertNoMoreValues, AssertChannelClosed, AssertChannelNotClosed: new generics-based helpers related to channels.
  • WithTempFileData, WithTempDir: new filesystem helpers.
  • jsonhelpers.AssertEqual, jsonhelpers.Value: a simpler way to do JSON equality assertions and get the diff format that's provided by this package, without having to use the matchers API.
  • testbox.ShouldFail, testbox.ShouldFailAndExitEarly: for making assertions about assertion logic.

Changed:

  • The minimum Go version is now 1.18.

v2.3.2

02 May 21:43
Compare
Choose a tag to compare

[2.3.2] - 2022-05-02

Changed:

  • Improved the panic message that is generated by httphelpers.BrokenConnectionHandler to make it clearer that this is an intentional error (if for instance the panic stacktrace is logged by http.Server).

2.3.1

03 Feb 20:06
Compare
Choose a tag to compare

[2.3.1] - 2022-02-03

Fixed:

  • The Assert/Require methods in matchers now call t.Helper() (if that method exists) so the location of the failure will be more accurately reported.

2.3.0

21 Jan 19:04
Compare
Choose a tag to compare

[2.3.0] - 2022-01-21

Added:

  • Subpackages jsonhelpers and matchers.

2.2.0

06 Jul 21:47
Compare
Choose a tag to compare

[2.2.0] - 2020-07-06

Added:

  • Added RetryMillis field to httphelpers.SSEEvent.

2.1.0

06 Jul 17:23
Compare
Choose a tag to compare

[2.1.0] - 2020-07-06

Added:

  • In httphelpers.SSEStreamControl: EnqueueComment and SendComment.

2.0.1

02 Jul 23:15
Compare
Choose a tag to compare

[2.0.1] - 2020-07-02

Fixed:

  • Fixed a bug in ChunkedStreamingHandler that caused the response to hang before reading the headers if there was no initial data in the stream.

2.0.0

02 Jul 16:33
Compare
Choose a tag to compare

[2.0.0] - 2020-07-01

Added:

  • In httphelpers, ChunkedStreamingHandler, SSEHandler, and SSEEvent
  • In the main package, ReadWithTimeout.

Changed:

  • This project now requires modules and has a minimum Go version of 1.13.
  • In ldservices, ServerSideStreamingServiceHandler now uses httphelpers.SSEEvent instead of having a dependency on the eventsource package. Its interface is now based on the new SSEHandler instead of using channels.
  • In httphelpers, PanicHandler is replaced by BrokenConnectionHandler.

Removed:

  • The LaunchDarkly client-side streaming endpoint handler in ldservices was not used and has been removed.