Skip to content

Commit

Permalink
test: Changed test to no longer use public microsoft symbol server. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-wilfert authored Sep 18, 2024
1 parent c847d01 commit 9f9dc81
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ stacktraces:
frames:
- status: symbolicated
original_index: 0
instruction_addr: "0x749e8630"
instruction_addr: "0x749d37f2"
package: "C:\\Windows\\System32\\kernel32.dll"
symbol: BaseThreadInitThunk
sym_addr: "0x749e8630"
function: BaseThreadInitThunk
symbol: memcpy
sym_addr: "0x749d37f2"
function: memcpy
lineno: 0
modules:
- debug_status: found
Expand All @@ -24,8 +24,7 @@ modules:
arch: x86
type: pe
code_file: "C:\\Windows\\System32\\kernel32.dll"
debug_id: ff9f9f78-41db-88f0-cded-a9e1e9bff3b5-1
debug_file: "C:\\Windows\\System32\\wkernel32.pdb"
debug_id: 3249d99d-0c40-4931-8610-f4e4fb0b6936-1
debug_file: "C:\\Windows\\System32\\crash.pdb"
image_addr: "0x749d0000"
image_size: 851968

10 changes: 6 additions & 4 deletions crates/symbolicator/src/endpoints/symbolicate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,20 +165,22 @@ mod tests {
let payload = r#"{
"stacktraces": [{
"registers": {"eip": "0x0000000001509530"},
"frames": [{"instruction_addr": "0x749e8630"}]
"frames": [{"instruction_addr": "0x749d37f2"}]
}],
"modules": [{
"type": "pe",
"debug_id": "ff9f9f78-41db-88f0-cded-a9e1e9bff3b5-1",
"debug_id": "3249d99d-0c40-4931-8610-f4e4fb0b6936-1",
"code_file": "C:\\Windows\\System32\\kernel32.dll",
"debug_file": "C:\\Windows\\System32\\wkernel32.pdb",
"debug_file": "C:\\Windows\\System32\\crash.pdb",
"image_addr": "0x749d0000",
"image_size": 851968
}],
"sources": []
}"#;
let mut payload: SymbolicationRequestBody = serde_json::from_str(payload).unwrap();
payload.sources = Some(vec![test::microsoft_symsrv()]);

let (_srv, source) = test::symbol_server();
payload.sources = Some(vec![source]);

let response = Client::new()
.post(server.url("/symbolicate"))
Expand Down

0 comments on commit 9f9dc81

Please sign in to comment.