Skip to content

Commit

Permalink
Satisfy into::<Borrow<_>>
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlewis committed Jul 29, 2024
1 parent 082104a commit 61d9119
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions buildpacks/go/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ impl From<IntegrationTestConfig> 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);
Expand Down Expand Up @@ -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| {
Expand All @@ -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);
}
Expand Down

0 comments on commit 61d9119

Please sign in to comment.