Skip to content

Commit

Permalink
CI doesn't seem to like the variable used by our interpolation test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed May 27, 2020
1 parent 0828632 commit 3b54ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ https = ["accept: html/text", "authorization: Basic $TOKEN"]

#[test]
fn interpolation() {
std::env::set_var("TOKEN", "abcdefg123456");
std::env::set_var("SUPER_SECRET_TOKEN", "abcdefg123456");
let header = HttpHeader {
name: "Authorization".parse().unwrap(),
value: "Basic $TOKEN".into(),
value: "Basic $SUPER_SECRET_TOKEN".into(),
};
let should_be: HeaderValue = "Basic abcdefg123456".parse().unwrap();

Expand Down

0 comments on commit 3b54ab2

Please sign in to comment.