diff --git a/xarray/test/test_dataarray.py b/xarray/test/test_dataarray.py
index <HASH>..<HASH> 100644
--- a/xarray/test/test_dataarray.py
+++ b/xarray/test/test_dataarray.py
@@ -1231,7 +1231,7 @@ class TestDataArray(TestCase):
         self.assertDataArrayIdentical(array, actual)
 
         actual = array.resample('24H', dim='time')
-        expected = DataArray(array.to_series().resample('24H'))
+        expected = DataArray(array.to_series().resample('24H', how='mean'))
         self.assertDataArrayIdentical(expected, actual)
 
         actual = array.resample('24H', dim='time', how=np.mean)
Test suite fix for compatibility with pandas <I>

We need to supply how='mean' to resample because the resample API is changing.