From 61d911977e2b63a20eca089019c2e69dc53e188c Mon Sep 17 00:00:00 2001 From: Josh W Lewis Date: Mon, 29 Jul 2024 12:24:05 -0500 Subject: [PATCH] Satisfy into::> --- buildpacks/go/tests/integration_test.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/buildpacks/go/tests/integration_test.rs b/buildpacks/go/tests/integration_test.rs index 471c100..3f1581d 100644 --- a/buildpacks/go/tests/integration_test.rs +++ b/buildpacks/go/tests/integration_test.rs @@ -46,7 +46,8 @@ impl From for BuildConfig { } fn test_go_fixture(fixture: &str, expect_loglines: &[&str], refute_loglines: &[&str]) { - TestRunner::default().build(IntegrationTestConfig::new(fixture).into(), |ctx| { + let build_config: BuildConfig = IntegrationTestConfig::new(fixture).into(); + TestRunner::default().build(build_config, |ctx| { let logs = format!("{}\n{}", ctx.pack_stdout, ctx.pack_stderr); for expect_line in expect_loglines { assert_contains!(logs, expect_line); @@ -170,7 +171,8 @@ fn test_basic_http_122() { #[test] #[ignore = "integration test"] fn test_go_artifact_caching() { - TestRunner::default().build(IntegrationTestConfig::new("basic_http_116").into(), |ctx| { + let build_config: BuildConfig = IntegrationTestConfig::new("basic_http_116").into(); + TestRunner::default().build(build_config, |ctx| { assert_contains!(ctx.pack_stdout, "Installing go1.16.",); let config = ctx.config.clone(); ctx.rebuild(config, |ctx| { @@ -188,7 +190,8 @@ fn test_go_binary_arch() { _ => (["(linux-amd64)", "linux-amd64.tar.gz"], "arm64"), }; - TestRunner::default().build(integration_config.into(), |ctx| { + let build_config: BuildConfig = integration_config.into(); + TestRunner::default().build(build_config, |ctx| { for contain in contains { assert_contains!(ctx.pack_stdout, contain); }