-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBG - break line that coverage says is not executed #2006
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,25 @@ class Consoles extends React.Component { | |
onDesktopConsoleDownload (type) { | ||
const { vm } = this.props; | ||
// fire download of the .vv file | ||
domainDesktopConsole({ name: vm.name, id: vm.id, connectionName: vm.connectionName, consoleDetail: vm.displays.find(display => display.type == type) }); | ||
const consoleDetail = vm.displays.find(display => display.type == type); | ||
|
||
let address; | ||
if (cockpit.transport.host == "localhost") { | ||
const app = cockpit.transport.application(); | ||
if (app.startsWith("cockpit+=")) { | ||
address = "wrong:" + app.substr(9); | ||
} else { | ||
address = window.location.hostname; | ||
} | ||
} else { | ||
address = cockpit.transport.host; | ||
const pos = address.indexOf("@"); | ||
if (pos >= 0) { | ||
address = address.substr(pos + 1); | ||
Comment on lines
+102
to
+105
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These 4 added lines are not executed by any test. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is expected, the test aborts before reaching the part that executes this code. |
||
} | ||
} | ||
|
||
domainDesktopConsole({ name: vm.name, consoleDetail: { ...consoleDetail, address } }); | ||
} | ||
|
||
render () { | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 2 added lines are not executed by any test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test failure shows the wrong value that is computed here. Hmm. Maybe the coverage collection goes wrong across logouts?