Skip to content

Commit

Permalink
test: system threads + avro win fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Aug 22, 2024
1 parent 935280d commit 2ee35cb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PACT_CLI="docker run --rm -v ${PWD}:${PWD} -e PACT_BROKER_BASE_URL=$(DOCKER_HOST
PLUGIN_PACT_PROTOBUF_VERSION=0.3.15
PLUGIN_PACT_CSV_VERSION=0.0.6
PLUGIN_PACT_MATT_VERSION=0.1.1
PLUGIN_PACT_AVRO_VERSION=0.0.6
PLUGIN_PACT_AVRO_VERSION=0.0.8

GO_VERSION?=1.22
ci:: docker deps clean bin test pact
Expand Down
2 changes: 1 addition & 1 deletion examples/avro/avro_consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestAvroHTTP(t *testing.T) {
UponReceiving("A request to do get some Avro stuff").
UsingPlugin(consumer.PluginConfig{
Plugin: "avro",
Version: "0.0.6",
Version: "0.0.8",
}).
WithRequest("GET", "/avro").
WillRespondWith(200, func(res *consumer.V4InteractionWithPluginResponseBuilder) {
Expand Down
6 changes: 3 additions & 3 deletions installer/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ func (i *Installer) checkMusl() error {
return err
}

// download template structure: "https://github.com/pact-foundation/pact-reference/releases/download/PACKAGE-vVERSION/LIBNAME-OS-ARCH.EXTENSION.gz"
var downloadTemplate = "https://github.com/pact-foundation/pact-reference/releases/download/%s-v%s/%s-%s-%s.%s.gz"
// download template structure: "https://github.com/you54f/pact-reference/releases/download/PACKAGE-vVERSION/LIBNAME-OS-ARCH.EXTENSION.gz"
var downloadTemplate = "https://github.com/you54f/pact-reference/releases/download/%s-v%s/%s-%s-%s.%s.gz"

var supportedOSes = map[string]string{
"darwin": macos,
Expand Down Expand Up @@ -387,7 +387,7 @@ const (
var packages = map[string]packageInfo{
FFIPackage: {
libName: "libpact_ffi",
version: "0.4.22",
version: "0.4.33",
semverRange: ">= 0.4.0, < 1.0.0",
},
}
Expand Down
8 changes: 4 additions & 4 deletions installer/installer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestInstallerDownloader(t *testing.T) {
{
name: "ffi lib - linux x86",
pkg: FFIPackage,
want: fmt.Sprintf("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/libpact_ffi-linux-x86_64.so.gz", packages[FFIPackage].version),
want: fmt.Sprintf("https://github.com/you54f/pact-reference/releases/download/libpact_ffi-v%s/libpact_ffi-linux-x86_64.so.gz", packages[FFIPackage].version),
test: Installer{
os: linux,
arch: x86_64,
Expand All @@ -46,7 +46,7 @@ func TestInstallerDownloader(t *testing.T) {
{
name: "ffi lib - macos x86",
pkg: FFIPackage,
want: fmt.Sprintf("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/libpact_ffi-macos-x86_64.dylib.gz", packages[FFIPackage].version),
want: fmt.Sprintf("https://github.com/you54f/pact-reference/releases/download/libpact_ffi-v%s/libpact_ffi-macos-x86_64.dylib.gz", packages[FFIPackage].version),
test: Installer{
os: macos,
arch: x86_64,
Expand All @@ -55,7 +55,7 @@ func TestInstallerDownloader(t *testing.T) {
{
name: "ffi lib - macos arm64",
pkg: FFIPackage,
want: fmt.Sprintf("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/libpact_ffi-macos-aarch64.dylib.gz", packages[FFIPackage].version),
want: fmt.Sprintf("https://github.com/you54f/pact-reference/releases/download/libpact_ffi-v%s/libpact_ffi-macos-aarch64.dylib.gz", packages[FFIPackage].version),
test: Installer{
os: macos,
arch: aarch64,
Expand All @@ -64,7 +64,7 @@ func TestInstallerDownloader(t *testing.T) {
{
name: "ffi lib - windows x86",
pkg: FFIPackage,
want: fmt.Sprintf("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/pact_ffi-windows-x86_64.dll.gz", packages[FFIPackage].version),
want: fmt.Sprintf("https://github.com/you54f/pact-reference/releases/download/libpact_ffi-v%s/pact_ffi-windows-x86_64.dll.gz", packages[FFIPackage].version),
test: Installer{
os: windows,
arch: x86_64,
Expand Down
2 changes: 1 addition & 1 deletion message/v4/asynchronous_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestAsyncTypeSystem_CsvPlugin_Matcher(t *testing.T) {
ExpectsToReceive("some csv content").
UsingPlugin(PluginConfig{
Plugin: "csv",
Version: "0.0.6",
Version: "0.0.8",
}).
WithContents(csvInteraction, "text/csv").
// StartTransport("notarealtransport", "127.0.0.1", nil).
Expand Down
2 changes: 1 addition & 1 deletion message/v4/synchronous_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestSyncTypeSystem_CsvPlugin_Matcher(t *testing.T) {
Given("some state").
UsingPlugin(PluginConfig{
Plugin: "csv",
Version: "0.0.6",
Version: "0.0.8",
}).
WithContents(csvInteraction, "text/csv").
ExecuteTest(t, func(m SynchronousMessage) error {
Expand Down

0 comments on commit 2ee35cb

Please sign in to comment.