Skip to content

Commit 793d549

Browse files
committed
fix unit test
1 parent 5a8a2a2 commit 793d549

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ public String toString() {
951951
if (_listenAddr != null) {
952952
graphicBuilder.append(" listen='" + _listenAddr + "'");
953953
} else {
954-
graphicBuilder.append(" listen='' ");
954+
graphicBuilder.append(" listen=''");
955955
}
956956
if (_passwd != null) {
957957
graphicBuilder.append(" passwd='" + _passwd + "'");

plugins/hypervisors/kvm/test/com/cloud/hypervisor/kvm/resource/LibvirtComputingResourceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public void testCreateVMFromSpecLegacy() {
8080
vmStr += "<serial type='pty'>\n";
8181
vmStr += "<target port='0'/>\n";
8282
vmStr += "</serial>\n";
83-
vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' />\n";
83+
vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' passwd='" + vncPassword + "'/>\n";
8484
vmStr += "<console type='pty'>\n";
8585
vmStr += "<target port='0'/>\n";
8686
vmStr += "</console>\n";
@@ -156,7 +156,7 @@ public void testCreateVMFromSpec() {
156156
vmStr += "<serial type='pty'>\n";
157157
vmStr += "<target port='0'/>\n";
158158
vmStr += "</serial>\n";
159-
vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' />\n";
159+
vmStr += "<graphics type='vnc' autoport='yes' listen='" + vncAddr + "' passwd='" + vncPassword + "'/>\n";
160160
vmStr += "<console type='pty'>\n";
161161
vmStr += "<target port='0'/>\n";
162162
vmStr += "</console>\n";

0 commit comments

Comments
 (0)