Index: third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-disconnects-during-error.html |
diff --git a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-disconnects-during-error.html b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-disconnects-during-error.html |
index 2614427d34c317ae2cf758ac9673895b9a2af047..dfbcdec96db162fa9198f7701ab33a7c989d8ed7 100644 |
--- a/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-disconnects-during-error.html |
+++ b/third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-disconnects-during-error.html |
@@ -13,10 +13,9 @@ promise_test(t => { |
})) |
.then(device => { |
return device.gatt.connect() |
- .then(gattServer => gattServer.getPrimaryService(request_disconnection_service_uuid)) |
- .then(service => service.getCharacteristic(request_disconnection_characteristic_uuid)) |
+ .then(gattServer => get_request_disconnection(gattServer)) |
.then(requestDisconnection => { |
- requestDisconnection.writeValue(new Uint8Array([0])); |
+ requestDisconnection(); |
return assert_promise_rejects_with_message( |
device.gatt.getPrimaryService('battery_service'), |
new DOMException('GATT Server disconnected while retrieving services.', |